//
//  Car.h
//  OCChater2
//
//  Created by 郭家正 on 2019/1/7.
//  Copyright © 2019 TM. All rights reserved.
//

#import <Foundation/Foundation.h>

//char []p = "宝马";

@interface Car : NSObject
//{
//    NSString *name;
//    NSString *color;
//    BOOL isNewEnergy;//是不是新能源 YES NO NSInteger CGFloat
//}//实例变量
//{
//    NSString *_name;
//    NSString *_color;
//    BOOL _isNewEnergy;//是不是新能源 YES NO NSInteger CGFloat
//}//实例变量


//属性
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *color;
@property (nonatomic, assign) BOOL isNewEnergy;

-(void)driveCar;//前进
-(void)backCar;//倒车
-(void)stopCar;//停车


@end


